#include <Theron/Theron.h>
#include "ThreadManager.h"
#include <string>
#include "threadA.h"
#include "singleton.h"

int main()
{

	Theron::Receiver receiver;
	ThreadManager* threadManager = ThreadManager::instance();

#if 0
	//如果不添加定时器，需要线程管理器发送任意数据到线程A，并触发整个多线程框架，测试用
	std::string data = "1";
	threadManager->m_framework.Send(data, receiver.GetAddress(), threadManager->m_threadA->GetAddress());
	//threadManager->m_threadA->send2ThreadbyID(0, 1);
#endif


	receiver.Wait();

	return 0;
}

